package com.glsc.ngateway.common.api.oaflow.dto.other;


import lombok.Data;

import java.util.List;


/**
 * @Title: FlowFieldProperties
 * @Description: 流程Field属性表
 * @author: 张宁
 * @version: 1.0.0
 * @date: 2020/12/21 16:29
 */


@Data
public class FlowObject {

    private String src;
    private String type;
    // 流程创建者
    private String creater;

    // 创建时是否停留在提交者0 会提交到第二个节点，1  停留在提交人。默认0
    private String isnextflow = "0";

    // 默认为workcode
    private String createrRight;
    // 外部系统如何获取，难道一个流程封装一个接口，还是说在接口平台中做一个系统调用的与FlowiD的映射关系
    private String workflowid;

    // 流程标题
    private String title;

    // 不知道这个字段是什么含义
    private String oldrequestid_fieldname;

    // 暂时不知道是什么含义，有待进一步确认
    private String oldrequestid_fieldvalue;

    // 流程主维度特征表
    private List<FlowFieldMain> mainMap;

    // 明细表数据
    private List<FlowFieldDetail> detailList;

    public FlowObject(String creater, String createrRight, String workflowid, String oldrequestid_fieldname, String oldrequestid_fieldvalue) {
        this.creater = creater;
        this.createrRight = createrRight;
        this.workflowid = workflowid;
        this.oldrequestid_fieldname = oldrequestid_fieldname;
        this.oldrequestid_fieldvalue = oldrequestid_fieldvalue;
    }

    public FlowObject() {
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getCreaterRight() {
        return createrRight;
    }

    public void setCreaterRight(String createrRight) {
        this.createrRight = createrRight;
    }

    public String getWorkflowid() {
        return workflowid;
    }

    public void setWorkflowid(String workflowid) {
        this.workflowid = workflowid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOldrequestid_fieldname() {
        return oldrequestid_fieldname;
    }

    public void setOldrequestid_fieldname(String oldrequestid_fieldname) {
        this.oldrequestid_fieldname = oldrequestid_fieldname;
    }

    public String getOldrequestid_fieldvalue() {
        return oldrequestid_fieldvalue;
    }

    public void setOldrequestid_fieldvalue(String oldrequestid_fieldvalue) {
        this.oldrequestid_fieldvalue = oldrequestid_fieldvalue;
    }

    public List<FlowFieldMain> getMainMap() {
        return mainMap;
    }

    public void setMainMap(List<FlowFieldMain> mainMap) {
        this.mainMap = mainMap;
    }

    public List<FlowFieldDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<FlowFieldDetail> detailList) {
        this.detailList = detailList;
    }
}
